<?php if($this->beginCache($this->actionPath,array(
    'duration' => 600,
    'varyByParam' => array('cid', 'page', 'timeico'))) ){ ?>
<div class="container">
    <div class="col-md-12">
        <div class="banner">
            <a href="/jifen.html" title="积分兑换" target="_blank"><img src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/images/banner.jpg"></a>
        </div>
    </div>
    <?php foreach ($custom_blocks as $block): ?>
        <div class="texuan-col goodlist">
            <div class="col-md-12">
                <div class="title">
                    <h3><i class="front-spt"></i><?php echo $block['block_title']; ?> <small>最高性价比</small></h3>
                </div>
            </div>
            <div class="body row">
                <?php foreach ($block['goods'] as $good): ?>
                    <?php include $this->getViewFile('../lib/nohfgoodlist'); ?>
                <?php endforeach; ?>
                <div class="clearfix"></div>
            </div>
        </div>
    <?php endforeach; ?>
    <div class="tehui-col goodlist">
        <div class="col-md-12">
            <div class="title">
                <div class="pull-left">
                    <span class="btn txslide active " id="tx"><em>今日</em>特惠</span> 
                    <span class="btn dj-btn txslide" id="tj"><em>秋冬</em>新款</span>
                </div>
                <ul class="pull-right">
                    <li><a href="<?php echo  $this->createUrl('/front/index/index',array('sort'=>'add_time') ); ?> ">
                            新品<i class="front-spt down"></i></a></li>
                    <li><a href="<?php echo  $this->createUrl('/front/index/index',array('sort'=>'sales') ); ?> ">
                            销量<i class="front-spt down"></i></a></li>
                    <li><a href="<?php echo  $this->createUrl('/front/index/index',array('sort'=>'promo_price') ); ?> ">
                            价格<i class="front-spt down"></i></a></li>
                    <li><a href="<?php echo  $this->createUrl('/front/index/index',array('page'=>'2') ); ?> ">
                            更多<i class="front-spt more"></i></a></li>
                </ul>
            </div>
        </div>
        <div class="clearfix"></div>
        <div class="body row txslidebody" id="txbody">
            <?php foreach ($home_goods as $good): ?>
                <?php include $this->getViewFile('../lib/nohfgoodlist'); ?>
            <?php endforeach; ?>
        </div>
        <div class="body row txslidebody" id="tjbody">
            <?php foreach ($recommend_goods as $good): ?>
               <?php include $this->getViewFile('../lib/nohfgoodlist'); ?>
            <?php endforeach; ?>
        </div>
        <div class="clearfix"></div>
        <div class="pager" id="pager">
            <?php
            $this->widget('CLinkPager', array(
                'header' =>"",
                'firstPageLabel' => '首页',
                'lastPageLabel' => '末页',
                'prevPageLabel' => '上一页',
                'nextPageLabel' => '下一页',
                'pages' => $pages,
                'footer' => "<span>共<em>{$pages->pageCount}</em>页</span>",
                'maxButtonCount' => 8
                    )
            );
            ?>
        </div>
    </div>
</div>
<?php $this->endCache(); } ?>
<div class="none">
    <script  type="text/javascript">
  var _sogou_sa_q = _sogou_sa_q || [];
  _sogou_sa_q.push(['_sid', '193367-198467']);
 (function() {
    var _sogou_sa_protocol = (("https:" == document.location.protocol) ? "https://" : "http://");
    var _sogou_sa_src=_sogou_sa_protocol+"hermes.sogou.com/sa.js%3Fsid%3D193367-198467";
    document.write(unescape("%3Cscript src='" + _sogou_sa_src + "' type='text/javascript'%3E%3C/script%3E"));
    })();
</script>

<script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1000407546'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "v1.cnzz.com/z_stat.php%3Fid%3D1000407546' type='text/javascript'%3E%3C/script%3E"));</script>
<script type="text/javascript"> (function(win,doc){ var s = doc.createElement("script"), h = doc.getElementsByTagName("head")[0]; if (!win.alimamatk_show) { s.charset = "gbk"; s.async = true; s.src = "http://a.alimama.cn/tkapi.js"; h.insertBefore(s, h.firstChild); }; var o = { pid: "mm_34837309_4174087_14402594",/*推广单元ID，用于区分不同的推广渠道*/ appkey: "",/*通过TOP平台申请的appkey，设置后引导成交会关联appkey*/ unid: ""/*自定义统计字段*/ }; win.alimamatk_onload = win.alimamatk_onload || []; win.alimamatk_onload.push(o); })(window,document);</script>
<script type="text/javascript"> (function(win,doc){ var s = doc.createElement("script"), h = doc.getElementsByTagName("head")[0]; if (!win.alimamatk_show) { s.charset = "gbk"; s.async = true; s.src = "http://a.alimama.cn/tkapi.js"; h.insertBefore(s, h.firstChild); }; var o = { pid: "mm_34837309_4174087_14402594",/*推广单元ID，用于区分不同的推广渠道*/ appkey: "",/*通过TOP平台申请的appkey，设置后引导成交会关联appkey*/ unid: ""/*自定义统计字段*/ }; win.alimamatk_onload = win.alimamatk_onload || []; win.alimamatk_onload.push(o); })(window,document);</script>

<script type="text/javascript" src="http://img1.2345.com/buyimg/js/auto_iframe.min.js"></script>
<script type="text/javascript">

    $('.nohf-cat-fix a').attr('target',"_blank");
    $('.tehui-col a').attr('target',"_blank");
    $('.nohf-catmenu a').attr('target',"_blank");
    $('.page a').click(function(){
        buy2345.go_top();
    });
    $('.first a').click(function(){
        buy2345.go_top();
    });
    $('.next a').click(function(){
        buy2345.go_top();
    });
    $('.previous a').click(function(){
        buy2345.go_top();
    });
    $('.last a').click(function(){
        buy2345.go_top();
    });
    <?php if($page>1):?>
        $('.texuan-col').css('display','none');
    <?php endif; ?>
</script>
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F1541c4389aac418ccfc4c57bbf3d3576' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F220dab965fbf69ac95a1fb470e12b0f4' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type='text/javascript'>
var DuoMaiSiteID = 109809;
document.write(unescape("%3Cscript src='http://www.duomai.com/djl/ads.js' type='text/javascript'%3E%3C/script%3E"));
document.write(unescape("%3Cscript src='http://www.duomai.com/djl/index.php?site_id=" + DuoMaiSiteID + ".js' type='text/javascript'%3E%3C/script%3E"));
document.write(unescape("%3Cscript src='http://www.duomai.com/djl/duojinlian.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type='text/javascript'>
try{
	var _djl_ = DuoJinLian._init_();
	_djl_.hulue('');
	_djl_.fankuibiaoqian('');
         _djl_.zhizuo('jd.com');
	_djl_.run();
}
catch(e)
{}
</script>
</div>
